/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.leulounge.views;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Andres Godoy
 */
public class Tables extends javax.swing.JFrame {

    public DefaultTableModel pileModel;
    
    /**
     * Creates new form Tables
     */
    public Tables() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        panelMesas = new javax.swing.JPanel();
        mesa1 = new javax.swing.JPanel();
        mesa2 = new javax.swing.JPanel();
        mesa3 = new javax.swing.JPanel();
        mesa4 = new javax.swing.JPanel();
        mesa5 = new javax.swing.JPanel();
        mesa6 = new javax.swing.JPanel();
        mesa7 = new javax.swing.JPanel();
        mesa8 = new javax.swing.JPanel();
        mesa9 = new javax.swing.JPanel();
        mesa10 = new javax.swing.JPanel();
        mesa11 = new javax.swing.JPanel();
        mesa12 = new javax.swing.JPanel();
        mesa13 = new javax.swing.JPanel();
        mesa14 = new javax.swing.JPanel();
        mesa15 = new javax.swing.JPanel();
        mesa16 = new javax.swing.JPanel();
        mesa17 = new javax.swing.JPanel();
        mesa18 = new javax.swing.JPanel();
        mesa19 = new javax.swing.JPanel();
        mesa20 = new javax.swing.JPanel();
        mesa21 = new javax.swing.JPanel();
        mesa22 = new javax.swing.JPanel();
        mesa23 = new javax.swing.JPanel();
        mesa24 = new javax.swing.JPanel();
        mesa25 = new javax.swing.JPanel();
        mesa26 = new javax.swing.JPanel();
        mesa27 = new javax.swing.JPanel();
        mesa28 = new javax.swing.JPanel();
        mesa29 = new javax.swing.JPanel();
        mesa30 = new javax.swing.JPanel();
        panelBarra = new javax.swing.JPanel();
        barra1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        barra2 = new javax.swing.JPanel();
        barra3 = new javax.swing.JPanel();
        barra4 = new javax.swing.JPanel();
        barra5 = new javax.swing.JPanel();
        barra6 = new javax.swing.JPanel();
        barra7 = new javax.swing.JPanel();
        barra8 = new javax.swing.JPanel();
        barra9 = new javax.swing.JPanel();
        barra10 = new javax.swing.JPanel();
        barra11 = new javax.swing.JPanel();
        barra12 = new javax.swing.JPanel();
        barra13 = new javax.swing.JPanel();
        barra14 = new javax.swing.JPanel();
        barra15 = new javax.swing.JPanel();
        barra16 = new javax.swing.JPanel();
        barra17 = new javax.swing.JPanel();
        barra18 = new javax.swing.JPanel();
        barra19 = new javax.swing.JPanel();
        barra20 = new javax.swing.JPanel();
        barra21 = new javax.swing.JPanel();
        barra22 = new javax.swing.JPanel();
        barra23 = new javax.swing.JPanel();
        barra24 = new javax.swing.JPanel();
        barra25 = new javax.swing.JPanel();
        barra26 = new javax.swing.JPanel();
        barra27 = new javax.swing.JPanel();
        barra28 = new javax.swing.JPanel();
        barra29 = new javax.swing.JPanel();
        barra30 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        ordersPile = new javax.swing.JTable();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(153, 153, 153));
        setBounds(new java.awt.Rectangle(0, 0, 0, 0));

        jPanel1.setBackground(new java.awt.Color(153, 153, 153));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT);

        panelMesas.setLayout(new java.awt.GridLayout(6, 6, 1, 1));

        mesa1.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa1Layout = new javax.swing.GroupLayout(mesa1);
        mesa1.setLayout(mesa1Layout);
        mesa1Layout.setHorizontalGroup(
            mesa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa1Layout.setVerticalGroup(
            mesa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa1);

        mesa2.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa2Layout = new javax.swing.GroupLayout(mesa2);
        mesa2.setLayout(mesa2Layout);
        mesa2Layout.setHorizontalGroup(
            mesa2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa2Layout.setVerticalGroup(
            mesa2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa2);

        mesa3.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa3Layout = new javax.swing.GroupLayout(mesa3);
        mesa3.setLayout(mesa3Layout);
        mesa3Layout.setHorizontalGroup(
            mesa3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa3Layout.setVerticalGroup(
            mesa3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa3);

        mesa4.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa4Layout = new javax.swing.GroupLayout(mesa4);
        mesa4.setLayout(mesa4Layout);
        mesa4Layout.setHorizontalGroup(
            mesa4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa4Layout.setVerticalGroup(
            mesa4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa4);

        mesa5.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa5Layout = new javax.swing.GroupLayout(mesa5);
        mesa5.setLayout(mesa5Layout);
        mesa5Layout.setHorizontalGroup(
            mesa5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa5Layout.setVerticalGroup(
            mesa5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa5);

        mesa6.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa6Layout = new javax.swing.GroupLayout(mesa6);
        mesa6.setLayout(mesa6Layout);
        mesa6Layout.setHorizontalGroup(
            mesa6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa6Layout.setVerticalGroup(
            mesa6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa6);

        mesa7.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa7Layout = new javax.swing.GroupLayout(mesa7);
        mesa7.setLayout(mesa7Layout);
        mesa7Layout.setHorizontalGroup(
            mesa7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa7Layout.setVerticalGroup(
            mesa7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa7);

        mesa8.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa8Layout = new javax.swing.GroupLayout(mesa8);
        mesa8.setLayout(mesa8Layout);
        mesa8Layout.setHorizontalGroup(
            mesa8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa8Layout.setVerticalGroup(
            mesa8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa8);

        mesa9.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa9Layout = new javax.swing.GroupLayout(mesa9);
        mesa9.setLayout(mesa9Layout);
        mesa9Layout.setHorizontalGroup(
            mesa9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa9Layout.setVerticalGroup(
            mesa9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa9);

        mesa10.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa10Layout = new javax.swing.GroupLayout(mesa10);
        mesa10.setLayout(mesa10Layout);
        mesa10Layout.setHorizontalGroup(
            mesa10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa10Layout.setVerticalGroup(
            mesa10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa10);

        mesa11.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa11Layout = new javax.swing.GroupLayout(mesa11);
        mesa11.setLayout(mesa11Layout);
        mesa11Layout.setHorizontalGroup(
            mesa11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa11Layout.setVerticalGroup(
            mesa11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa11);

        mesa12.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa12Layout = new javax.swing.GroupLayout(mesa12);
        mesa12.setLayout(mesa12Layout);
        mesa12Layout.setHorizontalGroup(
            mesa12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa12Layout.setVerticalGroup(
            mesa12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa12);

        mesa13.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa13Layout = new javax.swing.GroupLayout(mesa13);
        mesa13.setLayout(mesa13Layout);
        mesa13Layout.setHorizontalGroup(
            mesa13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa13Layout.setVerticalGroup(
            mesa13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa13);

        mesa14.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa14Layout = new javax.swing.GroupLayout(mesa14);
        mesa14.setLayout(mesa14Layout);
        mesa14Layout.setHorizontalGroup(
            mesa14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa14Layout.setVerticalGroup(
            mesa14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa14);

        mesa15.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa15Layout = new javax.swing.GroupLayout(mesa15);
        mesa15.setLayout(mesa15Layout);
        mesa15Layout.setHorizontalGroup(
            mesa15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa15Layout.setVerticalGroup(
            mesa15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa15);

        mesa16.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa16Layout = new javax.swing.GroupLayout(mesa16);
        mesa16.setLayout(mesa16Layout);
        mesa16Layout.setHorizontalGroup(
            mesa16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa16Layout.setVerticalGroup(
            mesa16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa16);

        mesa17.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa17Layout = new javax.swing.GroupLayout(mesa17);
        mesa17.setLayout(mesa17Layout);
        mesa17Layout.setHorizontalGroup(
            mesa17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa17Layout.setVerticalGroup(
            mesa17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa17);

        mesa18.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa18Layout = new javax.swing.GroupLayout(mesa18);
        mesa18.setLayout(mesa18Layout);
        mesa18Layout.setHorizontalGroup(
            mesa18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa18Layout.setVerticalGroup(
            mesa18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa18);

        mesa19.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa19Layout = new javax.swing.GroupLayout(mesa19);
        mesa19.setLayout(mesa19Layout);
        mesa19Layout.setHorizontalGroup(
            mesa19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa19Layout.setVerticalGroup(
            mesa19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa19);

        mesa20.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa20Layout = new javax.swing.GroupLayout(mesa20);
        mesa20.setLayout(mesa20Layout);
        mesa20Layout.setHorizontalGroup(
            mesa20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa20Layout.setVerticalGroup(
            mesa20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa20);

        mesa21.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa21Layout = new javax.swing.GroupLayout(mesa21);
        mesa21.setLayout(mesa21Layout);
        mesa21Layout.setHorizontalGroup(
            mesa21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa21Layout.setVerticalGroup(
            mesa21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa21);

        mesa22.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa22Layout = new javax.swing.GroupLayout(mesa22);
        mesa22.setLayout(mesa22Layout);
        mesa22Layout.setHorizontalGroup(
            mesa22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa22Layout.setVerticalGroup(
            mesa22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa22);

        mesa23.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa23Layout = new javax.swing.GroupLayout(mesa23);
        mesa23.setLayout(mesa23Layout);
        mesa23Layout.setHorizontalGroup(
            mesa23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa23Layout.setVerticalGroup(
            mesa23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa23);

        mesa24.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa24Layout = new javax.swing.GroupLayout(mesa24);
        mesa24.setLayout(mesa24Layout);
        mesa24Layout.setHorizontalGroup(
            mesa24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa24Layout.setVerticalGroup(
            mesa24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa24);

        mesa25.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa25Layout = new javax.swing.GroupLayout(mesa25);
        mesa25.setLayout(mesa25Layout);
        mesa25Layout.setHorizontalGroup(
            mesa25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa25Layout.setVerticalGroup(
            mesa25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa25);

        mesa26.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa26Layout = new javax.swing.GroupLayout(mesa26);
        mesa26.setLayout(mesa26Layout);
        mesa26Layout.setHorizontalGroup(
            mesa26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa26Layout.setVerticalGroup(
            mesa26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa26);

        mesa27.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa27Layout = new javax.swing.GroupLayout(mesa27);
        mesa27.setLayout(mesa27Layout);
        mesa27Layout.setHorizontalGroup(
            mesa27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa27Layout.setVerticalGroup(
            mesa27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa27);

        mesa28.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa28Layout = new javax.swing.GroupLayout(mesa28);
        mesa28.setLayout(mesa28Layout);
        mesa28Layout.setHorizontalGroup(
            mesa28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa28Layout.setVerticalGroup(
            mesa28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa28);

        mesa29.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa29Layout = new javax.swing.GroupLayout(mesa29);
        mesa29.setLayout(mesa29Layout);
        mesa29Layout.setHorizontalGroup(
            mesa29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa29Layout.setVerticalGroup(
            mesa29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa29);

        mesa30.setBackground(new java.awt.Color(204, 204, 204));

        javax.swing.GroupLayout mesa30Layout = new javax.swing.GroupLayout(mesa30);
        mesa30.setLayout(mesa30Layout);
        mesa30Layout.setHorizontalGroup(
            mesa30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        mesa30Layout.setVerticalGroup(
            mesa30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        panelMesas.add(mesa30);

        jTabbedPane1.addTab("Mesas", panelMesas);

        panelBarra.setLayout(new java.awt.GridLayout(6, 6, 1, 1));

        barra1.setBackground(new java.awt.Color(204, 204, 204));
        barra1.setLayout(new java.awt.GridLayout(2, 1));

        jLabel1.setFont(new java.awt.Font("Microsoft Yi Baiti", 0, 36)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("BARRA");
        barra1.add(jLabel1);
        barra1.add(jButton1);

        panelBarra.add(barra1);

        barra2.setBackground(new java.awt.Color(204, 204, 204));
        barra2.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra2);

        barra3.setBackground(new java.awt.Color(204, 204, 204));
        barra3.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra3);

        barra4.setBackground(new java.awt.Color(204, 204, 204));
        barra4.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra4);

        barra5.setBackground(new java.awt.Color(204, 204, 204));
        barra5.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra5);

        barra6.setBackground(new java.awt.Color(204, 204, 204));
        barra6.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra6);

        barra7.setBackground(new java.awt.Color(204, 204, 204));
        barra7.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra7);

        barra8.setBackground(new java.awt.Color(204, 204, 204));
        barra8.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra8);

        barra9.setBackground(new java.awt.Color(204, 204, 204));
        barra9.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra9);

        barra10.setBackground(new java.awt.Color(204, 204, 204));
        barra10.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra10);

        barra11.setBackground(new java.awt.Color(204, 204, 204));
        barra11.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra11);

        barra12.setBackground(new java.awt.Color(204, 204, 204));
        barra12.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra12);

        barra13.setBackground(new java.awt.Color(204, 204, 204));
        barra13.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra13);

        barra14.setBackground(new java.awt.Color(204, 204, 204));
        barra14.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra14);

        barra15.setBackground(new java.awt.Color(204, 204, 204));
        barra15.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra15);

        barra16.setBackground(new java.awt.Color(204, 204, 204));
        barra16.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra16);

        barra17.setBackground(new java.awt.Color(204, 204, 204));
        barra17.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra17);

        barra18.setBackground(new java.awt.Color(204, 204, 204));
        barra18.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra18);

        barra19.setBackground(new java.awt.Color(204, 204, 204));
        barra19.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra19);

        barra20.setBackground(new java.awt.Color(204, 204, 204));
        barra20.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra20);

        barra21.setBackground(new java.awt.Color(204, 204, 204));
        barra21.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra21);

        barra22.setBackground(new java.awt.Color(204, 204, 204));
        barra22.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra22);

        barra23.setBackground(new java.awt.Color(204, 204, 204));
        barra23.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra23);

        barra24.setBackground(new java.awt.Color(204, 204, 204));
        barra24.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra24);

        barra25.setBackground(new java.awt.Color(204, 204, 204));
        barra25.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra25);

        barra26.setBackground(new java.awt.Color(204, 204, 204));
        barra26.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra26);

        barra27.setBackground(new java.awt.Color(204, 204, 204));
        barra27.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra27);

        barra28.setBackground(new java.awt.Color(204, 204, 204));
        barra28.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra28);

        barra29.setBackground(new java.awt.Color(204, 204, 204));
        barra29.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra29);

        barra30.setBackground(new java.awt.Color(204, 204, 204));
        barra30.setLayout(new java.awt.GridLayout());
        panelBarra.add(barra30);

        jTabbedPane1.addTab("Barra", panelBarra);

        ordersPile.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Orden", "Destino"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(ordersPile);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 884, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 387, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(138, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 526, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    
    public void refreshPile(){
        pileModel= (DefaultTableModel) ordersPile.getModel();
        int i=0;
        if(pileModel.getRowCount()!=0){
            while(i!=-1){
                try{
                    pileModel.removeRow(pileModel.getRowCount()-1);
                }catch(Exception e){
                    i=-1;
                }
            }
        }
        
        try{
//            ArrayList<String[]> lista = null;
//            Iterator<String[]> it = lista.iterator();
//            while(it.hasNext()){
//                String[] obj = it.next();
//                pileModel.addRow(obj);
//            }
        }catch(Exception e){
        System.out.println("Error: "+e);
        }
    }
    
    
    /**
     * @param args the command line arguments
     */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel barra1;
    private javax.swing.JPanel barra10;
    private javax.swing.JPanel barra11;
    private javax.swing.JPanel barra12;
    private javax.swing.JPanel barra13;
    private javax.swing.JPanel barra14;
    private javax.swing.JPanel barra15;
    private javax.swing.JPanel barra16;
    private javax.swing.JPanel barra17;
    private javax.swing.JPanel barra18;
    private javax.swing.JPanel barra19;
    private javax.swing.JPanel barra2;
    private javax.swing.JPanel barra20;
    private javax.swing.JPanel barra21;
    private javax.swing.JPanel barra22;
    private javax.swing.JPanel barra23;
    private javax.swing.JPanel barra24;
    private javax.swing.JPanel barra25;
    private javax.swing.JPanel barra26;
    private javax.swing.JPanel barra27;
    private javax.swing.JPanel barra28;
    private javax.swing.JPanel barra29;
    private javax.swing.JPanel barra3;
    private javax.swing.JPanel barra30;
    private javax.swing.JPanel barra4;
    private javax.swing.JPanel barra5;
    private javax.swing.JPanel barra6;
    private javax.swing.JPanel barra7;
    private javax.swing.JPanel barra8;
    private javax.swing.JPanel barra9;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JPanel mesa1;
    private javax.swing.JPanel mesa10;
    private javax.swing.JPanel mesa11;
    private javax.swing.JPanel mesa12;
    private javax.swing.JPanel mesa13;
    private javax.swing.JPanel mesa14;
    private javax.swing.JPanel mesa15;
    private javax.swing.JPanel mesa16;
    private javax.swing.JPanel mesa17;
    private javax.swing.JPanel mesa18;
    private javax.swing.JPanel mesa19;
    private javax.swing.JPanel mesa2;
    private javax.swing.JPanel mesa20;
    private javax.swing.JPanel mesa21;
    private javax.swing.JPanel mesa22;
    private javax.swing.JPanel mesa23;
    private javax.swing.JPanel mesa24;
    private javax.swing.JPanel mesa25;
    private javax.swing.JPanel mesa26;
    private javax.swing.JPanel mesa27;
    private javax.swing.JPanel mesa28;
    private javax.swing.JPanel mesa29;
    private javax.swing.JPanel mesa3;
    private javax.swing.JPanel mesa30;
    private javax.swing.JPanel mesa4;
    private javax.swing.JPanel mesa5;
    private javax.swing.JPanel mesa6;
    private javax.swing.JPanel mesa7;
    private javax.swing.JPanel mesa8;
    private javax.swing.JPanel mesa9;
    private javax.swing.JTable ordersPile;
    private javax.swing.JPanel panelBarra;
    private javax.swing.JPanel panelMesas;
    // End of variables declaration//GEN-END:variables
}
